import fetch from 'common/src/utils/fetch';

/**
 * 新增不收费学生类型
 */
function addFreeStuType(data) {
    return fetch({
        url: '/api/electionservice/rebuildCourse/addCourseNoChargeType',
        method: 'post',
        data: data
    });
}

/**
 * 删除不收费学生类型
 */
function delFreeStuType(data) {
    return fetch({
        url: '/api/electionservice/rebuildCourse/deleteCourseNoChargeType',
        method: 'post',
        data: data
    });
}
/**
 * 修改不收费学生类型
 */
function editFreeStuType(data) {
    return fetch({
        url: '/api/electionservice/rebuildCourse/editCourseNoChargeType',
        method: 'post',
        data: data
    });
}

export default {
    findFreeStuTypeUrl: 'api/electionservice/rebuildCourse/findCourseNoChargeType',
    addFreeStuType: addFreeStuType,
    delFreeStuType: delFreeStuType,
    editFreeStuType: editFreeStuType
};
